<!--/api/schedulerInfo.json-->
<div>
    <div id="schedulerInfo.json"><h1>&nbsp;</h1></div>
    <div class="page-header">
        <h4>2.获取Scheduler信息</h4>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        描述:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        获取Scheduler信息
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        url:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        /api/schedulerInfo.json
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输入参数:
                    </label>
                    <div class="col-lg-10" >
                        <label class="control-label" style="text-align: left">
                            无
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输出参数:
                    </label>
                    <div class="col-lg-10" >
                        <table class="table table-striped table-bordered table-condensed">
                            <tr>
                                <th style="width: 20%">参数名称</th>
                                <th style="width: 10%">类型</th>
                                <th>描述</th>
                            </tr>
                            <tr>
                                <td>schedulerName</td>
                                <td>String</td>
                                <td>(scheduler)调度器名称</td>
                            </tr>
                            <tr>
                                <td>isShutdown</td>
                                <td>boolean</td>
                                <td>是否关闭</td>
                            </tr>
                            <tr>
                                <td>isStarted</td>
                                <td>boolean</td>
                                <td>是否启动</td>
                            </tr>
                            <tr>
                                <td>isInStandbyMode</td>
                                <td>boolean</td>
                                <td>是否处于准备模式</td>
                            </tr>
                            <tr>
                                <td>jobCount</td>
                                <td>int</td>
                                <td>(job)作业数量</td>
                            </tr>
                            <tr>
                                <td>triggerErrorCount</td>
                                <td>int</td>
                                <td>(trigger)触发器错误数量</td>
                            </tr>
                            <tr>
                                <td>triggerBlockedCount</td>
                                <td>int</td>
                                <td>(trigger)触发器堵塞数量</td>
                            </tr>
                            <tr>
                                <td>triggerPausedCount</td>
                                <td>int</td>
                                <td>(trigger)触发器暂停数量</td>
                            </tr>
                            <tr>
                                <td>schedulerConext</td>
                                <td>json array</td>
                                <td>key-value的自定义的schedulerConext参数</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        请求示例:
                    </label>
                    <div class="col-lg-10" >
                        <pre>url/api/schedulerInfo.json</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        返回信息:
                    </label>
                    <div class="col-lg-10" >
                         <pre class="jsonCode">
                            {
                            "resultCode": 1,
                            "content": [
                                    {
                                    "schedulerName": "quartzScheduler",
                                    "isShutdown": false,
                                    "isStarted": false,
                                    "isInStandbyMode": true,
                                    "jobCount": 2,
                                    "triggerErrorCount": 0,
                                    "triggerBlockedCount": 0,
                                    "triggerPausedCount": 1,
                                    "schedulerConext": []
                                    }
                                ]
                            }
                        </pre>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<!--end /api/schedulerInfo.json-->

<!--/api/schedulerStart.json-->
<div>
    <div id="schedulerStart.json"><h1>&nbsp;</h1></div>
    <div class="page-header">
        <h4>3.启动Scheduler</h4>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        描述:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        启动Scheduler,如果启动则不会再重启
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        url:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        /api/schedulerStart.json
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输入参数:
                    </label>
                    <div class="col-lg-10" >
                        <table class="table table-striped table-bordered table-condensed">
                            <tr>
                                <th style="width: 20%">参数名称</th>
                                <th style="width: 10%">类型</th>
                                <th style="width: 10%">是否必填</th>
                                <th>描述</th>
                            </tr>
                            <tr>
                                <td>schedulerName </td>
                                <td>String</td>
                                <td>YES</td>
                                <td>(scheduler)调度器名称</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输出参数:
                    </label>
                    <div class="col-lg-10" >
                        <pre>"ok"</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        请求示例:
                    </label>
                    <div class="col-lg-10" >
                        <pre>url/api/schedulerStart.json?schedulerName=quartzScheduler</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        返回信息:
                    </label>
                    <div class="col-lg-10" >
                         <pre class="jsonCode">
                            {
                                "resultCode": 1,
                                "content": "ok"
                             }
                        </pre>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<!--end /api/schedulerStart.json-->

<!--/api/schedulerStartDelayed.json-->
<div>
    <div id="schedulerStartDelayed.json"><h1>&nbsp;</h1></div>
    <div class="page-header">
        <h4>4.延迟启动Scheduler</h4>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        描述:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        延迟启动Scheduler,如果启动则不会再重启
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        url:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        /api/schedulerStartDelayed.json
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输入参数:
                    </label>
                    <div class="col-lg-10" >
                        <table class="table table-striped table-bordered table-condensed">
                            <tr>
                                <th style="width: 20%">参数名称</th>
                                <th style="width: 10%">类型</th>
                                <th style="width: 10%">是否必填</th>
                                <th>描述</th>
                            </tr>
                            <tr>
                                <td>schedulerName </td>
                                <td>String</td>
                                <td>YES</td>
                                <td>(scheduler)调度器名称</td>
                            </tr>
                            <tr>
                                <td>delayed </td>
                                <td>int</td>
                                <td>YES</td>
                                <td>延迟时间(秒)</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输出参数:
                    </label>
                    <div class="col-lg-10" >
                        <pre>"ok"</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        请求示例:
                    </label>
                    <div class="col-lg-10" >
                        <pre>url/api/schedulerStartDelayed.json?schedulerName=quartzScheduler&delayed=180</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        返回信息:
                    </label>
                    <div class="col-lg-10" >
                         <pre class="jsonCode">
                            {
                                "resultCode": 1,
                                "content": "ok"
                             }
                        </pre>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<!--end /api/schedulerStartDelayed.json-->

<!--/api/schedulerShutdown.json-->
<div>
    <div id="schedulerShutdown.json"><h1>&nbsp;</h1></div>
    <div class="page-header">
        <h4>5.停止Scheduler</h4>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        描述:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        关闭Scheduler,关闭后无法启动,必须重启应用
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        url:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        /api/schedulerShutdown.json
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输入参数:
                    </label>
                    <div class="col-lg-10" >
                        <table class="table table-striped table-bordered table-condensed">
                            <tr>
                                <th style="width: 20%">参数名称</th>
                                <th style="width: 10%">类型</th>
                                <th style="width: 10%">是否必填</th>
                                <th>描述</th>
                            </tr>
                            <tr>
                                <td>schedulerName </td>
                                <td>String</td>
                                <td>YES</td>
                                <td>(scheduler)调度器名称</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输出参数:
                    </label>
                    <div class="col-lg-10" >
                        <pre>"ok"</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        请求示例:
                    </label>
                    <div class="col-lg-10" >
                        <pre>url/api/schedulerShutdown.json?schedulerName=quartzScheduler</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        返回信息:
                    </label>
                    <div class="col-lg-10" >
                         <pre class="jsonCode">
                            {
                                "resultCode": 1,
                                "content": "ok"
                             }
                        </pre>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<!--end /api/schedulerShutdown.json-->

<!--/api/schedulerShutdown.json-->
<div>
    <div id="schedulerShutdownWait.json"><h1>&nbsp;</h1></div>
    <div class="page-header">
        <h4>6.等待job停止Scheduler</h4>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <form class="form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        描述:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        等待(job)作业运行结束后,关闭Scheduler,关闭后无法启动,必须重启应用
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        url:
                    </label>
                    <label class="col-lg-10 control-label" style="text-align:left">
                        /api/schedulerShutdownWait.json
                    </label>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输入参数:
                    </label>
                    <div class="col-lg-10" >
                        <table class="table table-striped table-bordered table-condensed">
                            <tr>
                                <th style="width: 20%">参数名称</th>
                                <th style="width: 10%">类型</th>
                                <th style="width: 10%">是否必填</th>
                                <th>描述</th>
                            </tr>
                            <tr>
                                <td>schedulerName</td>
                                <td>String</td>
                                <td>YES</td>
                                <td>(scheduler)调度器名称</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        输出参数:
                    </label>
                    <div class="col-lg-10" >
                        <pre>"ok"</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        请求示例:
                    </label>
                    <div class="col-lg-10" >
                        <pre>url/api/schedulerShutdownWait.json?schedulerName=quartzScheduler</pre>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">
                        返回信息:
                    </label>
                    <div class="col-lg-10" >
                         <pre class="jsonCode">
                            {
                                "resultCode": 1,
                                "content": "ok"
                             }
                        </pre>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
<!--end /api/schedulerShutdown.json-->